package com.xyzwps.lib.openapi.element;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class SecurityRequirement implements OASElement {

    private final Map<String, List<String>> requirements = new HashMap<>();

    public SecurityRequirement add(String name, List<String> scopes) {
        requirements.put(name, scopes);
        return this;
    }

    public Map<String, List<String>> requirements() {
        return requirements;
    }

    @Override
    public void accept(OAEVisitor visitor) {
        visitor.visit(this);
    }
}
